<template>
  <div>
    <div>
      <h2>{{ obj.title }}</h2>
      <div>
        <span>{{ obj.createTime | parseTimeByString }}</span>
        <span>{{ obj.username }}</span>
        <span class="el-icon-view" />
        <span>{{ obj.visits }}</span>
      </div>

      <div v-html="obj.articleBody" />

    </div>
  </div>

</template>

<script>
export default {
  name: 'LookAt',

  props: {
    obj: {
      type: Object,
      required: true
    }
  },

  created() {
    console.log(this.obj)
  }

}
</script>

<style lang="scss" scoped>
.el-dialog {
    width: 800px
}

>>> img{
    height: 309px;
    aspect-ratio: auto 720 / 309;
    width: 720px;
}

span {
    margin-left: 10px;
}

</style>
